Perfect Numbers

Introduction

In everyday language, the word perfect suggests something flawless or complete.
In mathematics, the idea is surprisingly similar. A perfect number is a whole number that is exactly equal to the sum of its proper divisors.

A proper divisor of a number is any positive whole number that divides it evenly except the number itself.
For example, the proper divisors of $10$ are $1$, $2$, and $5$ — we leave out $10$.

A number is called perfect if:

This idea goes back thousands of years to ancient Greek mathematics, where perfect numbers were admired for their symmetry and balance.

The First Perfect Number: $6$

Let’s look at the number $6$.

Its proper divisors are:

Now add them:

Because the sum equals the number itself, $6$ is a perfect number.

This is the smallest perfect number, and it’s often the first example used to introduce the concept.

The Next Perfect Number: $28$

Now consider $28$.

Its proper divisors are:

Add them:

Again, the sum matches the number.
So $28$ is also a perfect number.

Why Are Perfect Numbers Interesting?

Perfect numbers are rare and mysterious.
Even though people have studied them for over two thousand years, we still don’t know everything about them. For example:

Perfect numbers sit at a crossroads between simple arithmetic and deep mathematical ideas. They show how a basic question — “When do the divisors add up to the number?” — can lead to rich and surprising discoveries.

Formal Definition

Mathematicians often use the Greek letter $\sigma$ (sigma) to represent the sum of divisors function.
It is defined by $$\sigma(n) = \sum_{d \mid n} d,$$ where the symbol $d \mid n$ means “$d$ divides $n$.”

If we want the sum of proper divisors, we simply subtract $n$: $$\sigma(n) - n = \sum_{\substack{d \mid n \\ d < n}} d.$$ Now we can state the formal definition: $$\textbf{A number } n \textbf{ is perfect if } \sigma(n) = 2n,$$ or equivalently, $$\sum_{\substack{d \mid n \\ d < n}} d = n.$$ Both statements say the same thing:
the sum of all proper divisors of $n$ equals $n$ itself.

Deficient and Abundant Numbers

Perfect numbers are special because the sum of their proper divisors matches the number exactly.
But what if the sum is less than the number?
Or greater?

This leads to two related ideas:

Deficient Numbers

A number is called deficient if the sum of its proper divisors is less than the number itself.

Examples:

Most numbers are deficient.

Abundant Numbers

A number is called abundant if the sum of its proper divisors is greater than the number.

Example:

Abundant numbers are less common than deficient ones, but far more common than perfect numbers.

How These Ideas Fit Together

Every whole number greater than $1$ falls into exactly one of these three categories:

Perfect numbers sit right in the middle — a delicate balance between too little and too much.

The Perfect Number Formula

Perfect numbers may look mysterious at first, but there is a beautiful pattern behind every even perfect number.
This pattern was discovered by the ancient Greeks and later proved by the mathematician Euclid.
It gives us a way to construct perfect numbers instead of stumbling upon them by accident.

The Key Idea

Every even perfect number can be written in the form: $$2^{p-1}(2^p - 1)$$ where:

A prime of the form $2^p - 1$ is called a Mersenne prime, named after the French monk Marin Mersenne, who studied them in the 1600s.

So the formula says:

If $2^p - 1$ is prime, then $$2^{p-1}(2^p - 1)$$ is guaranteed to be a perfect number.

Why This Works (In Simple Terms)

The formula works because of how the divisors of powers of $2$ behave and how they combine with the divisors of a prime number.
When $2^p - 1$ is prime, the number $2^{p-1}(2^p - 1)$ has a very clean and predictable set of divisors.
When you add them all up, they match the number exactly — the defining property of perfection.

The full proof is more technical, but the heart of it is that the structure of the number forces the divisor sum to come out perfectly balanced.

Examples

Let’s see how the formula produces the first few perfect numbers.

Example 1: $p = 2$

$$2^2 - 1 = 3 \quad \text{(prime)}$$ $$2^{2-1}(3) = 2 \cdot 3 = 6$$ So $6$ is perfect.

Example 2: $p = 3$

$$2^3 - 1 = 7 \quad \text{(prime)}$$ $$2^{3-1}(7) = 4 \cdot 7 = 28$$ So $28$ is perfect.

What This Formula Does Not Tell Us

Why the Formula Matters

This formula is one of the oldest bridges between simple arithmetic and deep number theory.
It connects:

It also means that discovering a new Mersenne prime automatically gives us a new perfect number — a major event in modern mathematics.

Calculator

Perfect

  • Returns the perfect number at the given index
  • indices start at 1
perfect(1) perfect(2) perfect(1:10)

Exercises

  1. List all the proper divisors of $12$. What do they add up to? Is $12$ deficient, perfect, or abundant?

    Solution

    Proper divisors of $12$

    Proper divisors: $1, 2, 3, 4, 6$
    Sum: $1 + 2 + 3 + 4 + 6 = 16$
    Since $16 > 12$, the number $12$ is abundant.

  2. Find the proper divisors of $20$ and compute their sum. Classify $20$ as deficient, perfect, or abundant.

    Solution

    Proper divisors of $20$

    Proper divisors: $1, 2, 4, 5, 10$
    Sum: $1 + 2 + 4 + 5 + 10 = 22$
    Since $22 > 20$, the number $20$ is abundant.

  3. The number $18$ has proper divisors $1$, $2$, $3$, $6$, and $9$. Check that $1 + 2 + 3 + 6 + 9 = 21$.
    What type of number is $18$?

    Solution

    Proper divisors of $18$

    Proper divisors: $1, 2, 3, 6, 9$
    Sum: $1 + 2 + 3 + 6 + 9 = 21$
    Since $21 > 18$, the number $18$ is abundant.

  4. List the proper divisors of $15$. Do they add up to more than, less than, or equal to $15$?

    Solution

    Proper divisors of $15$

    Proper divisors: $1, 3, 5$
    Sum: $1 + 3 + 5 = 9$
    Since $9 < 15$, the number $15$ is deficient.

  5. Explain in your own words what a “proper divisor” is and why we exclude the number itself.

    Solution

    What is a proper divisor?

    A proper divisor of a number is any positive divisor except the number itself.
    We exclude the number because including it would always make the sum at least equal to the number, which would make the classification (deficient, perfect, abundant) meaningless.

  6. Choose any number between $25$ and $40$. Find its proper divisors, add them, and decide whether it is deficient or abundant.

    Solution

    Any number between $25$ and $40$

    Answers vary depending on the number chosen.
    Here are a few examples:

    • $30$: proper divisors are $1, 2, 3, 5, 6, 10, 15$
      Sum: $42$ → abundant
    • $32$: proper divisors are $1, 2, 4, 8, 16$
      Sum: $31$ → deficient
    • $36$: proper divisors are $1, 2, 3, 4, 6, 9, 12, 18$
      Sum: $55$ → abundant

    Any correct classification earns full credit.

  7. True or false: every number greater than $1$ has at least one proper divisor.

    Solution

    True or false: every number greater than $1$ has at least one proper divisor.

    True.
    Every number greater than $1$ is divisible by $1$, and $1$ is always a proper divisor.

  8. A number is called slightly abundant if the sum of its proper divisors is exactly one more than the number. For example, if $n$ had proper divisors summing to $n + 1$, it would be slightly abundant.
    Show that no such number can exist by thinking about how divisors pair up.

    Solution

    Why slightly abundant numbers cannot exist

    A “slightly abundant” number would satisfy: $$\text{sum of proper divisors} = n + 1.$$ But the sum of proper divisors is always: $$\sigma(n) - n,$$ so the condition becomes: $$\sigma(n) - n = n + 1 \quad \Rightarrow \quad \sigma(n) = 2n + 1.$$ However, $\sigma(n)$ is always even for any number $n > 1$ that is not a power of $2$, because divisors come in pairs like $(d, n/d)$.

    If $n$ is a power of $2$, say $n = 2^k$, then its divisors are $1, 2, 4, \dots, 2^k$, and their sum is: $$1 + 2 + 4 + \dots + 2^k = 2^{k+1} - 1,$$ which is odd, but then the sum of proper divisors is: $$(2^{k+1} - 1) - 2^k = 2^k - 1,$$ which is less than $n$, so the number is deficient, not slightly abundant.

    Thus no number can satisfy the condition “sum of proper divisors = $n + 1$”.
    So slightly abundant numbers do not exist.

  9. Challenge: Find a number that is abundant but just barely — meaning the sum of its proper divisors is only a little larger than the number. How close can you get?

    Solution

    A number that is abundant but “barely”

    One example is:

    • $18$: sum of proper divisors is $21$, which is only $3$ more than $18$.

    Another example:

    • $20$: sum is $22$, only $2$ more.
  10. Find the next perfect number after 28
    • hint: it's close to 500

    Solution

    The next perfect number

    The next perfect number after $28$ is $496$.

  11. For a perfect number like $6$ or $28$, something remarkable happens: if you take all of its positive divisors (including the number itself), and add up their reciprocals, the total is exactly $2$. Verify this fact for the perfect number $6$ by listing all its divisors, taking their reciprocals, and showing that the sum is $2$. Then repeat the calculation for the perfect number $28$.
    • The reciprocal of $x$ is $\frac1x$

    Solution

    The sum of the reciprocals

    For the perfect number $6$

    The positive divisors of $6$ are: $$1,\; 2,\; 3,\; 6.$$ Add them: $$\begin{align*} & 1 + \frac12 + \frac13 + \frac16. \\\\ &= \frac{12}{12} + \frac6{12} + \frac4{12}+ \frac2{12}. \\\\ &= \frac{24}{12} \\\\ &= 2. \end{align*}$$

    For the perfect number $28$

    The positive divisors of $28$ are: $$1,\; 2,\; 4,\; 7,\; 14,\; 28.$$ Add their reciprocals: $$\begin{align*} & 1 + \frac12 + \frac14 + \frac17 + \frac1{14} + \frac1{28}. \\\\ &= \frac{28}{28} + \frac{14}{28} + \frac{7}{28}+ \frac{4}{28}+ \frac{2}{28}+ \frac{1}{28}. \\\\ &= \frac{56}{28} \\\\ &= 2. \end{align*}$$ So the reciprocals of the divisors of $28$ also sum to 2.
    This property holds for every even perfect number — another elegant sign of their mathematical symmetry.